package com.thghh;

import com.thghh.table.BeanColumn;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public class User {


    @BeanColumn(name = "用户编号", index = 0)
    private Integer id;


    @BeanColumn(name = "用户姓名", index = 1)
    private String username;

    @BeanColumn(name = "用户密码", index = 2)
    private String password;


    @BeanColumn(name = "用户年龄", index = 3)
    private int age;

    //这里如果取名字为is开头，在introspector中可能会存在BUG
    @BeanColumn(name = "婚否", index = 4)
    private Boolean isMarry;
}